import { createWebHashHistory, createRouter } from "vue-router";
//引入组件
import LuoPan from "@/views/LuoPan.vue";
import Home from "@/views/Home.vue";

//配置路由映射规则
const routes = [
    { path: "/", component: Home },
    { path: "/LuoPan", component: LuoPan },
];
//路由实例通过createRouter创建
const router = createRouter({
    history: createWebHashHistory(),
    routes,
});
export default router; //导出，用于main.js注册